import React, { Component } from 'react'
import { Text, View, TouchableOpacity } from 'react-native'
import { createStackNavigator } from '@react-navigation/stack';

import ProfileScreen from '../screens/Profile'
import ProfileSettingsScreen from '../screens/Profile/Settings'
import ProfileAboutScreen from '../screens/Profile/About'


// 创建栈导航
const Stack = createStackNavigator();

export default class ProfileStack extends Component {
  constructor() {
    super()
  }

  render() {
    return (
      <Stack.Navigator>
        <Stack.Screen name="Profile" component={ProfileScreen} options={{ title: '个人中心' }} />
        <Stack.Screen name="ProfileSettings" component={ProfileSettingsScreen} />
        <Stack.Screen name="ProfileAbout" component={ProfileAboutScreen} />
      </Stack.Navigator>
    )
  }
}